#!/bin/bash

read -p "Please enter your host name: " HOST_NAME
read -p "Enter Mysql Root Password: " MYSQL_PASS

# yum install
wget http://styxlib.googlecode.com/svn/trunk/special/vpn/0.basic_config.sh
wget http://styxlib.googlecode.com/svn/trunk/special/vpn/1.install_vpn.sh
wget http://styxlib.googlecode.com/svn/trunk/special/vpn/2.install_mysql_yum.sh
wget http://styxlib.googlecode.com/svn/trunk/special/vpn/3.install_freeradius_yum.sh
wget http://styxlib.googlecode.com/svn/trunk/special/vpn/4.install_lighttpd_php_yum.sh
wget http://styxlib.googlecode.com/svn/trunk/special/vpn/5.install_daloradius.sh

chmod +x *.sh

#
./0.basic_config.sh <<EOF
${HOST_NAME}
EOF

./1.install_vpn.sh 

./2.install_mysql_yum.sh <<EOF
${MYSQL_PASS}
${MYSQL_PASS}
EOF

./3.install_freeradius_yum.sh <<EOF
${MYSQL_PASS}
EOF

./4.install_lighttpd_php_yum.sh

./5.install_daloradius.sh <<EOF
${MYSQL_PASS}
EOF


